package com.scs.application.modules.print.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 */
@Data
@Accessors(chain = true)
@TableName("print_template")
public class Template extends DataEntity {

    @EntityFieldAnnotation(
            text = "业务类型",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String busType;

    @EntityFieldAnnotation(
            text = "打印类型",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String printType;

    @EntityFieldAnnotation(
            text = "打印模板",
            not_null = false,
            default_value = "",
            type = EntityFieldType.TEXT,
            comment = ""
    )
    private String configJson;

    @TableField(exist = false)
    private List<Field> fieldList;
}
